<?php

require_once './interfaces/serveur.interface.php';
	
	 class serveur implements serveurInterface{
	 	
	 	private $id_serveur;
	 	private $nom_serveur;
	 	private $gain_xp;
	 	private $gain_argent_min;
	 	private $gain_argent_max;
	 	private $seuil_xp;
	 	private $duree;
	 	private $cout_energie;
	 	
	function serveur($id_serveur){
		$serveur = get_serveur($id_serveur);
 		$this->id_serveur = $serveur['serveur_id'];
 		$this->nom_serveur = $serveur['serveur_nom'];
 		$this->gain_xp = $serveur['gain_exp'];
 		$this->gain_argent_min = $serveur['gain_argent_min'];
 		$this->gain_argent_max = $serveur['gain_argent_max'];
 		$this->seuil_xp = $serveur['exp_min'];
 		$this->duree = $serveur['duree'];
 		$this->cout_energie = $serveur['cout_energie'];
	}
	
	function get_id(){
		return $this->id_serveur;
	}
	
	function get_nom(){
		return $this->nom_serveur;
	}
	
	function get_gain_xp(){
		return $this->gain_xp;
	}
	
	function get_gain_min(){
		return $this->gain_argent_min;
	}
	
	function get_gain_max(){
		return $this->gain_argent_max;
	}
	
	function get_seuil_xp(){
		return $this->seuil_xp;
	}
	
	function get_duree(){
		return $this->duree;
	}
	
	function get_cout_energie(){
		return $this->cout_energie;
	}
	
	function get_xp(){
		
	}
	
	function get_xp_min(){
		
	}
	 	
}
	 
?>